<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>
            /* .指定类名 class="" */
            /* #指定id id="" */
            .box {  
                width: 200px;
                height: 200px;
                border: 3px solid #000;
                font-size: 30px;
                margin-top: 10px;
            }
            .pink {
                background-color: pink;
            }
            .big {
                width: 300px;
                height: 300px;
            }
        </style>
    </head>

    <body>
        <div id="app">
            <div class="box" :class="{pink: true, big: true}">地球人不会Vue</div>
            <div class="box" :class="['pink', 'big']">sudo不会Vue</div>
            <!-- 这里background-color需要加引号或写成驼峰 JS中属性名需要是驼峰命名 -->
            <div class="box" :style="{'background-color': 'red', width: '400px', height: '400px'}">dqr不会Vue</div>
        </div>

        <script src="../src/Vue2/vue.js"></script>

        <script>
            const app = new Vue({
                el: '#app',
                data: {

                }
            })
        </script>
    </body>
</html>